import torch
import torch.nn as nn



class LSTMRegressor(nn.Module):
    def __init__(self, input_dim, hidden_dim=64, num_layers=1, output_dim=1):
        super().__init__()
        self.lstm = nn.LSTM(input_dim, hidden_dim, num_layers, batch_first=True)
        self.fc = nn.Linear(hidden_dim, output_dim)
    def forward(self, x):

        out, _ = self.lstm(x)
        out = self.fc(out)
        return out

# 你可以继续添加CNN、GRU等基线模型

if __name__ == "__main__":
    # 简单测试
    x = torch.randn(4, 1, 30, 44)  # 假设输入

 

